#ifndef FADETOBLACK_H
#define FADETOBLACK_H

#include <string>
#include "Box2D/Box2D.h"
#include "SFML/Graphics.hpp"
#include <SFML/OpenGL.hpp>
#include "Objects/GameObject.h"

using namespace std;

class FadeToBlack : public GameObject
{
public:
	FadeToBlack(GameState *gameState, float maxTime = 0.5f, bool inverse = false);

	// Update
	virtual void update(double dt);

	virtual void draw();

	float getAlpha() { return m_alpha; }
	

private:
	float m_alpha;

	float m_maxTime;

	bool m_inv;

};

#endif
